package com.bootdo.wx.dao;

import com.bootdo.wx.domain.MemberAddressDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 收货地址
 * @author sys
 * @email 1992lcg@163.com
 * @date 2019-03-19 16:39:23
 */
@Mapper
public interface MemberAddressDao {

	MemberAddressDO get(String id);
	
	List<MemberAddressDO> list(Map<String, Object> map);
	List<MemberAddressDO> queryByUserId(Map<String, Object> map);

	int count(Map<String, Object> map);
	
	int save(MemberAddressDO memberAddress);
	
	int update(MemberAddressDO memberAddress);

	int removeDefault(String userId);

	int remove(String id);
	
	int batchRemove(String[] ids);
}
